home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
lib
/
c
/
dir
/
closedir.c
< prev
next >
Wrap
C/C++ Source or Header
|
1988-07-28
|
549b
|
27 lines
/*
* Copyright (c) 1983 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)closedir.c 5.2 (Berkeley) 3/9/86";
#endif LIBC_SCCS and not lint
#include <stdlib.h>
#include <sys/param.h>
#include <sys/dir.h>
/*
* close a directory.
*/
void
closedir(dirp)
register DIR *dirp;
{
close(dirp->dd_fd);
dirp->dd_fd = -1;
dirp->dd_loc = 0;
free((char *) dirp);
}